package lambda;

import java.io.FileFilter;
import java.io.File;

public class LambdaDemo1 {
    public static void main(String[] args) {
        File dir=new File("./src/main/java/file");
        /*FileFilter filter=new FileFilter() {
            @Override
            public boolean accept(File file) {
                return file.getName().contains("F");
            }

        } ;*/
        File[]subs=dir.listFiles(f->f.getName().contains("F"));
    }
}
